<h2>TimeLog</h2>

 <table class="data">
  <%@project.time_logs.each do |i|%>
   <tr>
      <td><%=i.user.name %></td> 
      <td><%=i.add_at.to_formatted_s(:show)%></td>
      <td><%=distance_of_time_in_words(i.start_at,i.end_at)%></td>
   <%@total  += i.end_at - i.start_at %>
   </tr>
 <%end%>
 <tr>
     <td><strong>TOTAL</strong></td>
  <td colspan=2> <%=@total/3600%> hours</td> 
 </tr>
</table>
